package com.wenguo.bussines.spring;

import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.util.Assert;

public class MySqlSessionDaoSupport extends SqlSessionDaoSupport{

	@Resource(name="sqlSessionFactory")
	 public void setSuperSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
		Assert.notNull(sqlSessionFactory, "sqlSessionFactory must be not null");
        super.setSqlSessionFactory(sqlSessionFactory);
    }

}
